/**
 * Created by Lori on 2015/1/3.
 */
(function(factory) {
	"use strict";
	if (typeof define === 'function' && define.amd) {
		define(factory);
	} else {
		window.$CONST = factory();
	}
}(function() {
	return {
		EVENT : {
			LISTENERID : 'PROJ_REGISTER_SELF',
			PROJECT_CHANGED : 'PROJECT_CHANGED',
			OPEN_WO : 'PROJ.OPEN.WORKORDER',
			OPEN_WO3 : 'PROJ.OPEN.WORKORDER3',
			OPEN_OBJ : 'PROJ.OPEN.OBJECTIVE',
			OPEN_DBTOOLS : 'PROJ.OPEN.DBTOOLS',
			OPEN_DYN : 'PROJ.OPEN.DYN',
			WS_SOFTPHONE : "WS.SOFTPHONE",
			WS_CAPTURESCREEN : "WS.CAPTURESCREEN",
			WS_VOICECAPTURE : 'WS.VOICECAPTURE'
		},
		ModuleName : {
			ADDIN_CUSTOMER : "AddinCustomer",
			ADDIN_WORKORDERSERCH : 'AddinWorkorderSearch',
			ADDIN_WORKORDER : "AddinWorkorder",
			ADDIN_CALLSUMMARY : "AddinCallSummary",
			ADDIN_OUTBOUND : "AddinOutbound",
			CHAT : "CHAT"
		},
		ModuleEvent : {
			ECM_INITIALIZE : "ECM_INITIALIZE", //初始化事件，第一次打开模块时候会触发
			ECM_SHOW : "ECM_SHOW", //展示事件，讲模块展示到tab中时触发
			ECM_TERMINATE : "ECM_TERMINATE", //退出系统时候触发
			ECM_WORKSTART : "ECM_WORKSTART", //工作开始时触发
			ECM_WORKEND : "ECM_WORKEND", //工作结束时触发
			ECM_CALLSUMMARY : "ECM_CALLSUMMARY", //当电话小结时候触发
			ECM_CUSTOMERPRECHANGE : "ECM_CUSTOMERPRECHANGE", //当当前客户改变之前触发
			ECM_CUSTOMERCHANGE : "ECM_CUSTOMERCHANGE", //当客户改变后触发
			ECM_CLOSETAB : "ECM_CLOSETAB", //当关闭tab时候触发
			ECM_CUSTOMERPROPERTIESCHANGED : 'EMC_CUSTOMER_PROPERTIESCHANGED', // 客户资料属性发生改变之后触发
			EXTERNAL_MESSAGE : 'EXTERNAL_MESSAGE' //其他消息
		},
		CTIEvent : {
			CTI_ONCALLSTART : "CTI_ONCALLSTART",
			CTI_ONCALLESTABLISH : "CTI_ONCALLESTABLISH",
			CTI_ONCALLEND : "CTI_ONCALLEND",
			CTI_ONSIMULATIONCALLSTART : "CTI_ONSIMULATIONCALLSTART",
			CTI_CALLSTATECHANGE : "CTI_CALLSTATECHANGE",
			CTI_AGENTSTATECHANGE : "CTI_AGENTSTATECHANGE",
			CTI_ONCALLACTION : "CTI_ONCALLACTION",
			CTI_ONLOGIN : "CTI_ONLOGIN",
			CTI_ONLOGOUT : "CTI_ONLOGOUT",
			CTI_AUTOCALLENDAFTERSAVE : 'CTI_AUTOCALLENDAFTERSAVE',
			CTI_PARTYADDED : 'CTI_PARTYADDED',
			CTI_PARTYDELETED : 'CTI_PARTYDELETED',
			CTI_PARTYCHANGED : 'CTI_PARTYCHANGED',
			EVT_DATAUPDATED : 'EVT_DATAUPDATED',
			EVT_ERROR : 'EVT_ERROR',
			EVT_MONITOR: 'EVT_MONITOR',
			EVT_RECORD_START: 'EVT_RECORD_START',
			EVT_RECORD_END: 'EVT_RECORD_END'
		},
		CacheName : {
			STAFF : "cache_staff",
			AGENT : "cache_agent",
			ROLEGROUPS : "cache_rolegroups",
			ROLEGROUPSTAFFS : 'cache_rolegroup_staffs',
			FREE_DATE : "c_freedate",
			CALL_RESULT_REASON : "cache_sysc_callresultreason",
			OBJECTIVE_SUB_STATUS : 'cache_sysc_objectivesubstatus',
			ROLE_PASS_QX : 'cache_rolepassqx',
			DB_MASKER: 'dbMasker',
			PUBLIC_CACHE: 'ngs_public_cache',
			SYSC_PARAMETER: 'ngs_sysc_parameter',
			SYSC_ADDINS: 'ngs_sysc_addins',
			OBJECTIVETYPES: 'ngs_objectivetypes',
			WO_FRAME_MAP: 'ngs_woframemap',
			CUSTOMER_FIELDS: 'ngs_customer_fields',
			CLIENT_LOGGER_UPLOAD: 'ngs_client_logger_upload',
			I18N: 'ngs_i18n'
		},

		Instance : {
			CUSTOMER_BINDED : 'Instance.customer.binded',
			AFTER_RENDER : 'Instance.after.render',
			RENDER_COMPLETED : 'Instance.render.completed',
			ON_DESTROY : 'Instane.onDestroy'
		},

		Rolling : {
			OBLIST : "ROLLING.OBLIST"
		},

		WO : {
			WO_SysOpen : "OPEN",
			WO_SysReOpen : "REOPEN",
			WO_SysBack : "BACK",
			WO_SysClose : "CLOSE",
			WO_SysSubStepFinish : "FINISH",
			WO_SysFailed : "FAILED",
			WO_SysEnd : "END",
			WO_SysTrans : "TRANS",
			WO_SysStop : "STOP",
			WO_SysTick : "TAKE",
			WO_SysURGE : "URGE",
			WO_SysAssist : 'ASSIST',
			WO_SysTickClose : "TAKECL",
			WO_SysReplyCustomer : "REPLY",
			WO_SysSendNextStep : "SENDNS",
			WO_SysRollBack : 'ROBACK',
			WO_SysCCRead: 'READ',
			WO_SysTransfer: 'TRANSF'
		},

		WorkLoadNotifyEvent : {
			OB : "WORKLOADNOTIFY_OB",
			WO : "WORKLOADNOTIFY_WO",
			MAIL : "WORKLOADNOTIFY_MAIL",
			SMS : "WORKLOADNOTIFY_SMS",
			FAX : "WORKLOADNOTIFY_FAX"
		},

		ChatEvent : {
			CHAT_SESSION_CHANGED : "CHAT_SESSION_CHANGED",
			CHAT_SESSION_NEED_CLOSE : "CHAT_SESSION_NEED_CLOSE",
			ADD_MESSAGE_TO_TEXTAREA : "ADD_MESSAGE_TO_TEXTAREA",
			BATCH_ADD_MESSAGE_TO_TAB_SESSION : "BATCH_ADD_MESSAGE_TO_TAB_SESSION",
			ADD_MESSAGE_TO_TEXTAREA_WMM : "ADD_MESSAGE_TO_TEXTAREA_WMM",
			CLOSE_SESSION : "CLOSE_SESSION",
			CHAT_LOGINED : "CHAT_LOGINED",
			CHAT_LOGGED_OUT : "CHAT_LOGGED_OUT",
			CHANGE_CLIENT : "CHANGE_CLIENT",
			CHAT_SESSION_DOUBLE_CLICKED : "CHAT_SESSION_DOUBLE_CLICKED",
			PHONE_CUSTOMER_CONFIRMED : 'PHONE_CUSTOMER_CONFIRMED',
			CUSTOM_NOTICE : 'CUSTOM_NOTICE',
			UPDATE_CLIENT_TAGS : 'UPDATE_CLIENT_TAGS',
			ADD_CUSTOMINFO_ON_CHATITEM : 'ADD_CUSTOMINFO_ON_CHATITEM',
			SHORTCUT : 'SHORTCUT',
			UPDATE_CLIENT_RATE : 'UPDATE_CLIENT_RATE',
			BLOCK_USER : 'BLOCK_USER',
			CHAT_SESSION_CREATED : 'CHAT_SESSION_CREATED',
			SEND_MESSAGE : 'SEND_MESSAGE',
			END_SESSION : 'END_SESSION',
			CHAT_MESSAGE_CLICKED : 'CHAT_MESSAGE_CLICKED',
			SWITCH_TO_SESSION : 'SWITCH_TO_SESSION',
			START_SESSION : 'START_SESSION',
			NEW_MESSAGE_RECEIVED: 'NEW_MESSAGE_RECEIVED',
			CLICK_QUEUE_NUMBER: 'CLICK_QUEUE_NUMBER',
			CHAT_SESSION_FIRST_REPLY : 'CHAT_SESSION_FIRST_REPLY',
			AGENT_SEND_MESSAGE : 'AGENT_SEND_MESSAGE',
			CHAT_SESSION_CLOSED: 'CHAT_SESSION_CLOSED'  //结束会话状态
		},
		ChatUtil: {
			CHANGE_HEIGHT_LIGHT_WORD:'CHANGE_HEIGHT_LIGHT_WORD',
			SCROLL:'SCROLL'
		},

		BaiDuMapEvent : {
			RETURN_BAIDUMAP_POINT_COORDINATE : "RETURN_BAIDUMAP_POINT_COORDINATE"
		},

		SoftphoneEvent : {
			NUMBER_INPUT_DOUBLE_CLICKED : "NUMBER_INPUT_DOUBLE_CLICKED",
			MAKE_CALL : "MAKE_CALL",
			RELEASE_CALL: "RELEASE_CALL",
			TRANSFER_TO_IVR: "TRANSFER_TO_IVR",
			TRANSFER_TO_QUEUE: "TRANSFER_TO_QUEUE",
			VIDEO_CLICKED: "VIDEO_CLICKED",
			INIT_CONFERENCE: "INIT_CONFERENCE",
			INIT_TRANSFER: "INIT_TRANSFER",
			LOGIN_CLICKED: "LOGIN_CLICKED"
		},

		BoundType : {
			F_String : 0,
			F_Float : 1,
			F_Date : 2,
			F_Boolean : 3,
			F_Clob : 4,
			F_Long : 5,
			F_Int : 6
		},

		ModuleId : {
			COMMON: 'XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXXXX',
			FOLDERCOMMON: 'XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXFOLDER'
		}
	}
}));
